package com.company.ifdemo;

import java.util.Scanner;

public class if1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入内容：");
        String s = scanner.nextLine();

              //equals判断字符串是否相等
        if (s.equals("Hello")) {//shab用==号判断字符串 记得用equals

            System.out.println(s);
        }
        System.out.println("End");
            scanner.close();

    }
}